﻿<UserControl x:Class="WFDataBaseProject.Controls.UCQueryEditor"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             Width="300" Height="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="7*"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <TextBlock Text="Query body: " Margin="5"/>
        <Border BorderThickness="2" Grid.Row="1" BorderBrush="Black" Margin="5,5,5,5">
            <TextBox Name="txtQuery" />
        </Border>
        <Grid Grid.Row="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="2*"/>
                <ColumnDefinition Width="2*"/>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Button Name="btnTestQuery" Grid.Column="0" Content="Test Query" Margin="2,2,2,2" Click="btnTestQuery_Click" />
            <Button Name="btnOK" Grid.Column="2" Content="OK" Margin="2,2,2,2" Click="btnOK_Click" />
            <Button Name="btnCancel" Grid.Column="3" Content="Cancel" Margin="2,2,2,2" Click="btnCancel_Click" />
        </Grid>
    </Grid>
</UserControl>
